using System;
using System.Collections.Generic;
using System.Text;

namespace GraphFS
{
	public class FSRoute : LinkedList<FSNode>
	{

		public override string ToString()
		{
			StringBuilder sb = new StringBuilder();


			sb.AppendFormat("Route from {0} to {1}", this.First.Value, this.Last.Value);
			sb.Append(Environment.NewLine);
			LinkedListNode<FSNode> n = this.First;
			while (n != null)
			{
				sb.Append("Node: ");
				sb.Append(n.Value);
				sb.Append(Environment.NewLine);
				n = n.Next;
			}


			return sb.ToString();
		}

	}
}
